package com.study.system.config;

import com.study.system.common.enums.CaptchaTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.awt.*;


@ConfigurationProperties(prefix = "easy-captcha")
@Configuration
@Data
public class CaptchaConfig {


    private CaptchaTypeEnum type = CaptchaTypeEnum.ARITHMETIC;

    private long ttl = 120l;


    private int length = 4;

    private int width = 120;

    private int height = 36;



    private String fontName = "Verdana";


    private Integer fontStyle = Font.PLAIN;


    private int fontSize = 20;


}
